package com.nit.store.service;

import com.nit.store.pojo.dto.output.AddressDto;

import java.util.List;

/**
 * @Author J1ay
 * @Date 2022/7/21 19:00
 * @Description 地址管理
 */

public interface AddressService {
    /**
     * 根据id查找地址
     * @param uid
     * @return
     */
    public List<AddressDto> getAddress(Long uid);

    /**
     * 设置默认地址
     * @param aid aid
     * @param uid uid
     */
    void setDefault(long aid, long uid);

    /**
     * 删除
     * @param aid aid
     */
    void delete(long aid);

    /**
     * 添加收货地址
     * @param receiver /
     * @param provinceCode /
     * @param cityCode /
     * @param areaCode /
     * @param zip /
     * @param address /
     * @param phone /
     * @param tel /
     * @param tag /
     */
    void add(String receiver,
             String provinceCode,
             String cityCode,
             String areaCode,
             String zip,
             String address,
             String phone,
             String tel,
             String tag,
             String username,
             long uid);

}
